package dao

import (
	"context"
	"mall-portalv2/internal/model"
)

func (d *Dao) QueryUmsIntegrationConsumeSettingWhereID(ctx context.Context, ID int64) (model.UmsIntegrationConsumeSetting, error) {
	tb := model.UmsIntegrationConsumeSetting{}
	result := model.UmsIntegrationConsumeSetting{}

	if err := d.db.WithContext(ctx).Table(tb.TableName()).Where("id = ?", ID).First(&result).Error; err != nil {
		return result, err
	}
	return result, nil
}
